<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/AdminOneColumnLayout.Master" %>

<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<script runat="server">
	public string TitleFormat = "$company.name$ e-Commerce Management";
</script>

<asp:Content ContentPlaceHolderID="title" runat="server" ID="c1">
	<%SecurityPrivilege = "AppFunctions.ManageProducts"; %>
	<div class="left"><h1><asp:Label runat="server" ID="currencyConvertLbl" >e-Commerce Management</asp:Label></h1></div>
	<div class="HelpBtnArea" style="float:right">
		<asp:HyperLink runat="server" ID="_pageHelp" NavigateUrl="../std/Help.aspx?helpid=eComManagementHelp" Target="help">Help</asp:HyperLink>
	</div>
	<swf:BizProc ID="tax" runat="server" factoryName="eComCompanyProductTaxes">
		<ParentBizProc id="loginBP" />
	</swf:BizProc>
	<swf:BizProc ID="pricing" runat="server" factoryName="eComCompanyProductQuantityDiscounts">
		<ParentBizProc id="loginBP" />
	</swf:BizProc>
</asp:Content>

<asp:Content ContentPlaceHolderID="mainContent" runat="server" ID="c3">
    <span class="button5"><snc:ActionButton runat="server" ID="deleteBtn" Actions="tax.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;" /></span>
    <snc:Grid ID="tGrid" runat="server" Width="750px" Height="250px" AllowSorting="false"  
        ShowToolbar="false" ParentBizProcIds="tax" Mode="LiveScrolling">
        <Columns>
            <ntb:KeyColumn DataField="id" />
            <ntb:TextColumn DataField="name" HeaderText="Tax Name" width="200" ReadOnly="false" MaxLength="35" />
            <ntb:TextColumn DataField="baseAddOn.CmpCur" HeaderText="Fixed Add On" width="100" MaxLength="10" ReadOnly="false" />
            <ntb:TextColumn DataField="percentCost" HeaderText="% of Cost" width="100" ReadOnly="false" MaxLength="3" />
        </Columns>
    </snc:Grid>

    <span class="button5"><snc:ActionButton runat="server" ID="delBtn2" Actions="pricing.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;" /></span>
    <snc:Grid ID="pGrid" runat="server" Width="750px" Height="250px"   AllowSorting="false"
        ShowToolbar="false" ParentBizProcIds="pricing" Mode="LiveScrolling">
        <Columns>
            <ntb:KeyColumn DataField="id" />
            <ntb:TextColumn DataField="name" HeaderText="Discount Name" width="200" ReadOnly="false" MaxLength="35" />
            <ntb:TextColumn DataField="quantity" HeaderText="Quantity" width="75" ReadOnly="false" MaxLength="4" />
            <ntb:TextColumn DataField="baseDiscount.CmpCur" HeaderText="Fixed Discount" width="100" ReadOnly="false" MaxLength="10" />
            <ntb:TextColumn DataField="percentCost" HeaderText="% of Cost" width="100" ReadOnly="false" MaxLength="3" />
        </Columns>
    </snc:Grid>
</asp:Content>
